/**
 * 
 */

/**
 * @author dave
 *
 */
import java.util.ArrayList;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.gametime.dao.spring.SpringTeamDAOImpl;
import com.gametime.model.Team;
import com.gametime.service.TeamService;
import com.gametime.util.LogUtil;

public class SpringTester
{

  /**
   * @param args
   */
  public static void main(String[] args) throws Exception
  {
    // TODO Auto-generated method stub
    ApplicationContext context = 
        new ClassPathXmlApplicationContext("Beans.xml");
    //SpringTeamDAOImpl teamDAO = (SpringTeamDAOImpl) context.getBean("teamDAO");
   
    ArrayList<Team> teams = TeamService.getAllTeams();
    for(Team t : teams)
    {
      LogUtil.trace(t.toString());
    }

  }

}
